package com.tianmu.connector.server.position;

import com.tianmu.connector.server.BinlogConnectorException;
import com.tianmu.connector.server.config.SyncConfig;

/**
 * 处理binlog位点信息接口，实现该接口创建自定义位点处理类
 */
public interface IPositionHandler {
    BinlogPositionEntity getPosition(SyncConfig syncConfig) throws BinlogConnectorException;

    void savePosition(SyncConfig syncConfig, BinlogPositionEntity binlogPositionEntity) throws BinlogConnectorException;
}
